public enum Work {
    FIRST,TWO,TREE;
    public static void main(String[] args) {
         Work[] work=Work.values();
         for (Work s:work){
             System.out.println(s+" "+s.ordinal());
         }
         //将字符串转化为枚举
        System.out.println(Work.valueOf("FIRST"));
    }
}
